package com.my.object;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "accommodation")
public class Accommodation {
	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "create_datetime")
	private Date create_datetime;
	@Column(name = "expired_datetime")
	private Date expired_datetime;
	@Column(name = "apartment_id")
	private int apartment_id;
	@Column(name = "student_id")
	private int student_id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreate_datetime() {
		return create_datetime;
	}

	public void setCreate_datetime(Date create_datetime) {
		this.create_datetime = create_datetime;
	}

	public Date getExpired_datetime() {
		return expired_datetime;
	}

	public void setExpired_datetime(Date expired_datetime) {
		this.expired_datetime = expired_datetime;
	}

	public int getApartment_id() {
		return apartment_id;
	}

	public void setApartment_id(int apartment_id) {
		this.apartment_id = apartment_id;
	}

	public int getStudent_id() {
		return student_id;
	}

	public void setStudent_id(int student_id) {
		this.student_id = student_id;
	}

	@Override
	public String toString() {
		return "Accommodation [id=" + id + ", create_datetime="
				+ create_datetime + ", expired_datetime=" + expired_datetime
				+ ", apartment_id=" + apartment_id + ", student_id="
				+ student_id + "]";
	}

}
